package com.tianqu.tms.core.webservice.weichat.api.rpc.uploadservice;

public class UploadServiceProxy implements UploadService_PortType {
  private String _endpoint = null;
  private UploadService_PortType uploadService_PortType = null;
  
  public UploadServiceProxy() {
    _initUploadServiceProxy();
  }
  
  public UploadServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initUploadServiceProxy();
  }
  
  private void _initUploadServiceProxy() {
    try {
      uploadService_PortType = (new UploadService_ServiceLocator()).getUploadSoap();
      if (uploadService_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)uploadService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)uploadService_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (uploadService_PortType != null)
      ((javax.xml.rpc.Stub)uploadService_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public UploadService_PortType getUploadService_PortType() {
    if (uploadService_PortType == null)
      _initUploadServiceProxy();
    return uploadService_PortType;
  }
  
  public java.lang.Integer uploadImageToMarketCar(java.lang.String serial, java.lang.String transfer_serial, java.lang.String image, int size) throws java.rmi.RemoteException{
    if (uploadService_PortType == null)
      _initUploadServiceProxy();
    return uploadService_PortType.uploadImageToMarketCar(serial, transfer_serial, image, size);
  }
  
  
}